<div class="example-wrapper">
    <div style="margin-bottom: 5px;">
        <button onclick="expand('2000', true)">Expand 2000</button>
        <button onclick="expand('2000')">Collapse 2000</button>
        <button onclick="expand(undefined, true)">Expand All</button>
        <button onclick="expand(undefined)">Collapse All</button>
    </div>
    <div id="myGrid" class="ag-theme-quartz"></div>
</div>